import requests

cookies = '_zap=02ae61a4-2023-4f0d-a69e-71f30d682249; d_c0="AGDf3GA98xSPTil5m6Y8WblzXtbKm075Yo4=|1652700927"; ' \
          '__snaker__id=FNJ8Ok0Te6GZnyPv; _9755xjdesxxd_=32; ' \
          'YD00517437729195%3AWM_TID=fKgI08VibjNFREAQBQLQWAJ2j5HwyAEt; ' \
          'q_c1=426ffb5413574c148cf14a893dd324af|1658221812000|1658221812000; ' \
          '_xsrf=28ed88d1-03a3-43f9-ad3a-8b739e5652b2; Hm_lvt_98beee57fd2ef70ccdd5ca52b9740c49=1662513238,1662530365,' \
          '1662534568,1662537062; YD00517437729195%3AWM_NI=fJgdPpqGbZvNWLR0Y7dKbF2o3ZD' \
          '%2B3i97KlwamWotPa7FiWK8c9GV2EjeIE9B643bOjhzGjXRtjK' \
          '%2BQ79uAEahtMm9ASS7LBNk8G5cR2uFoVoiSLSnFBrRjRQMGnyu1HZQU1o%3D; ' \
          'YD00517437729195%3AWM_NIKE' \
          '=9ca17ae2e6ffcda170e2e6ee82f45f96b186adf73efbb88ea6d85f878e9bacd45df4bb869af641a1b5bfa6dc2af0fea7c3b92aa696a985d37cb399aebbf54695949ed1dc3da895aea7b165f1868cccb263fbe9858df66baf89a195d36bf59aa7b8ca34a1e789b7b14faabb87a6bc4af6ecfd83ce62aca6898bdb5ab8b685ccd43dfbab8fa6e464b893a3dac45991e984a3cd61fc99fb84d13ab79aa1b7ee6391949d8fc54ab28ea6b3d44785b2b796b4449a8f9bd2ee37e2a3; NOT_UNREGISTER_WAITING=1; gdxidpyhxdE=vmtjjQpQG%2FyXhVLgVcgiKXKwsVIqN7b16basYgdJkgBALzCM7CIhNBc1GmWfpBZ1o8q51YWN6YWJNT3RCGJkdnJI%5CJrwNrxR%2BAbEiovu4T0gENpVjf17txeB6GliOipXdfLSqtiCAZtqiy1O4E9g%2Bhp1T2xZHEY9OzEYml7%5CJUvt9353%3A1662608506058; SESSIONID=7Dpn0pyaoWWmq2jGKDGlrSvxJq7Og2D5ulmkKOyEPEU; JOID=WlAUBkvrV8_yjgbhJeYvlwBTiqw53Bq7mbZ2kUCMAJGb-jyLax0715yGD-wk5ugxbLrcHqoBVJHu2WH0OuA5w_4=; osd=VlgWC03nX83_iArpJ-spmwhRh6o11Bi2n7p-k02KDJmZ9zqHYx820ZCODeEi6uAzYbzQFqgMUp3m22zyNug7zvg=; captcha_session_v2=2|1:0|10:1662607872|18:captcha_session_v2|88:UHg5UFAzTGczYTkwYUZQOWRaY1gwSUlLRHV4T1l3TFd2Z1Z4KzhZbUVvL3ZMRG5jMTZZQ2hDUWNJTG9TVFZ4eQ==|7c279f13cfb4e5d5f985954a0b7e15518ba5b8f6f1b726f359f8be78d4a08568; captcha_ticket_v2=2|1:0|10:1662607892|17:captcha_ticket_v2|704:eyJ2YWxpZGF0ZSI6IkNOMzFfelM4aXl6bWkucEtXTF9DLXAwMmprR3lrWkxueU9tTVI5UXg3YWE3Z21hT19Gc01JQ3EtQ29GNXlvRmtTTFFqZklOLVYxdGxxdVJMNjR0bXV1RUtXZW15WXM3UkZOdEpoZlZrcllGdDhHa1diQUI1bm1aVW1TVnBMVWQ5WFItQ3VxSDVhbzV4STc1cVYxeDVibWNpQkJTYVVhVVZSaUhoc0Eyd1FZcE5RUElkWkpMSzVJa2lwTnRRVnVtU3ZlWExITC5vNE9Vc1lQQmlqUDFlejZKcDdpb0FnbE5lQjh2MUE5bktoRFpNZVc3LUdHWWFxSXduN29CRzdhUlF0eFE5VTJaVktMUFl3U0h1b1doQWh4SFRtSkl0bmJQUkxPdFE4elJyc2dxMmNNTTRxVDc5c1dra1J1MDhic3ZrOTZsRlpObHk2bzJLWTlnakhUTGU0alc2VUtjc3ZVTUpTYzk5bFQyNmhnNWFQYS5zemhvSldubXdSX29vYmlCdURYdGNuYkRfTDAxZ1ZoSHl6ZU5BU3NKT2tqRGEyRUxMQlFtZEdFdkM0UUw4U3hLb3RjdE05R2x6bFNnR25ILVEuYjF6clZrUHFscWFvMFR2RTJQalU5QTJFVk5qUFJHMGpwQ0xldkJ6bHYtRllyYy5PLjR2MHpxSnZJV1I0TGN6MyJ9|4ee0ae6441f6ea07649746e627fa7138f65a3fda2afa68c8597148be30ef3f02; z_c0=2|1:0|10:1662607892|4:z_c0|92:Mi4xNjlDY0x3QUFBQUFBWU5fY1lEM3pGQ1lBQUFCZ0FsVk5GTEFHWkFDQXMycVhDZmVxMV9tQWN3M2NxWVVUUVA3MEhn|9fba061ec6c6828490a848f4cb099130aa35df9afcd15edee6c9b9cfedf83af5; tst=r; Hm_lpvt_98beee57fd2ef70ccdd5ca52b9740c49=1662608412; KLBRSID=d6f775bb0765885473b0cba3a5fa9c12|1662608513|1662606850 '
headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) '
                  'Chrome/52.0.2743.116 Safari/537.36 '
}
jar = requests.cookies.RequestsCookieJar()


def get_xsrf():
    for cookie in cookies.split(";"):
        key, value = cookie.split("=", 1)
        jar.set(key, value)

    resp = requests.get("https://www.zhihu.com/people/19-61-52-76-71", cookies=jar, headers=headers)
    print(resp.text)


if __name__ == '__main__':
    get_xsrf()
